Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Сатин Н.А. #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

SanGreen74
Copy link

@SanGreen74 SanGreen74 commented May 26, 2018

Copy link

@disturm disturm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хорошее решение. И за слайдер для итераций залипательный =)

function start() {
let inputParams = getUserInput();
setCords(centerCoords.x - scale, centerCoords.x + scale, centerCoords.y - scale, centerCoords.y + scale);
drawDractal(inputParams);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Очепятка!

const nextX = 2 / 3 * point.x + (x - y) / (3 * (x + y) * (x + y));
const nextY = 2 / 3 * point.y * (1 - point.x /((x + y) * (x + y)));
const nextPoint = { x: nextX, y: nextY };
return getNewtoonAttractor(nextPoint, n - 1, iterationAmount + 1);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Конечно, большой глубины рекурсии тут не будет, но я бы циклом сделал.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants